<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<style>
.ui-widget,.ui-widget .ui-widget {
	font-size: 11px !important;
}

.login {
	top:50%;
}
</style>
</h:head>
<h:body>
	<ui:composition template="template/commonLayoutFull.xhtml">
		<ui:define name="content">
			<h:form>	
				<center>
				<h:panelGrid width="250px">
					<br />
					<br />
					<br />
					<br />
					<br />
					<br />
					<p:panel header="Login do Sistema" style="width:250px;" id="pnLogin">
						<h:panelGrid columns="2">
							<h:outputText value="Usuário: " />
							<p:inputText id="txtUser" value="#{loginBean.usuario}"/> 
							<h:outputText value="Senha: " />
							<p:password id="txtPass" value="#{loginBean.senha}"/>
						</h:panelGrid>
						<br />
						<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true"/> 
						<h:panelGrid columns="2" style="text-align: center;">
							<p:commandButton id="btCancelar" value="Cancelar" update="pnLogin" process="@this">
								<p:resetInput target="txtUser" />
								<p:resetInput target="txtPass" />  					
							</p:commandButton>  
						  	<p:commandButton id="btEntrar" value="Entrar" icon="ui-icon-key" actionListener="#{loginBean.logar}"/>
					  	</h:panelGrid>
					</p:panel>
				</h:panelGrid>
				<br />
				<br />
				<br />
				</center>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>